package trymock

type IDB interface {
	Get(key string) (string, error)
}

func GetValueFromDatabase(db IDB, key string) string {
	if val, err := db.Get(key); err == nil {
		return val
	}
	return ""
}
